<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml"
      layout:decorate="~{front/common/manage}" xmlns:layout="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="UTF-8">
  <title>个人中心-我的作品</title>
  <link rel="stylesheet" href="/static/front/css/my-prod-index.css">
</head>

<body>
<div layout:fragment="content">
  <div class="con6-index-r">
    <div class="title-pic">
      <img src="/static/front/imgs/zys123.jpg"/>
    </div>
    <div class="count">
      <ul>
        <li>
          <h2 class="commited" style="display: none;"></h2>
          <h4><i><img src="/static/front/imgs/zys124.png"/></i>审核中/张</h4>
        </li>
        <li class="red">
          <h2 class="total_on_sale" style="display: none;"></h2>
          <h4><i><img src="/static/front/imgs/zys125.png"/></i>在售中/张</h4>
        </li>
        <li>
          <h2 class="balance" style="display: none;">24010.<small>0</small></h2>
          <h4><i><img src="/static/front/imgs/zys126.png"/></i>账户余额/元</h4>
        </li>
        <li>
          <h2 class="total_amount" style="display: none;">54002.<small>0</small></h2>
          <h4><i><img src="/static/front/imgs/zys127.png"/></i>总收入/元</h4>
        </li>
      </ul>
    </div>
    <div class="new-prod item">
      <div class="head">
        <span>最新上传作品</span>
        <a href="/copyright/manage/works">更多>></a>
      </div>
      <div class="body latest_works">
        <ul>

        </ul>
      </div>
    </div>
    <div class="new-info item">
      <div class="head">
        <span>最新消息</span>
        <a href="/copyright/manage/message">更多>></a>
      </div>
      <div class="body latest_messages">

      </div>
    </div>
  </div>
</div>

<th:block layout:fragment="script">
  <script id="latest_works_body" type="text/html">
    {{# if(d.length>0){ }}
    {{#  layui.each(d, function(index, item){ }}
    {{# if (index > 4 ){ }}
    <li  class="last" ><a href="/copyright/manage/detail?id={{ item.id}}" target="_blank"><img src="{{ item.imageUrl}}"/></a></li>
    {{# }else{  }}
    <li ><a href="/copyright/manage/detail?id={{ item.id}}" target="_blank"><img src="{{ item.imageUrl}}"/></a></li>
    {{#  } }}
    {{#  }); }}
    {{# }else{  }}
    <h4>您还没有上传过图片哦！<a href="/copyright/register/edit">立即上传</a></h4>
    {{# } }}
  </script>

  <script id="latest_message_content" type="text/html">
    {{#  layui.each(d, function(index, item){ }}
    <div class="top">
      <h4>{{item.title}}</h4>
      <span>{{item.createTime}}</span>
    </div>
    <div class="bottom">
      <p>{{item.content}}</p>
    </div>

    {{#  }); }}
  </script>
  <script type="text/javascript" src="/static/front/js/config.js"></script>
  <script type="text/javascript">
    layui.use('personal');
  </script>
</th:block>

</body>
</html>

